ARR=(2 4 6 8)
v=4
if [[ "${ARR[@]}" =~ $v ]] ; then
    #if echo "${ARR[@]}" | grep -w "2" &>/dev/null; then
    echo "Found"
fi
